<?php

namespace T4;

abstract class Output {
    
    abstract public function prepare($data);
    abstract public function headers();

    public function __invoke($data) {
        $this->headers();
        echo $this->prepare($data);
    }
    
}